package com.hckjsec.cloud.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessMatterMapper;
import com.hckjsec.cloud.domain.AppletsBusinessMatter;
import com.hckjsec.cloud.service.IAppletsBusinessMatterService;

/**
 * 申办信息-公证事项Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-23
 */
@Service
public class AppletsBusinessMatterServiceImpl implements IAppletsBusinessMatterService 
{
    @Autowired
    private AppletsBusinessMatterMapper appletsBusinessMatterMapper;

    /**
     * 查询申办信息-公证事项
     * 
     * @param id 申办信息-公证事项ID
     * @return 申办信息-公证事项
     */
    @Override
    public AppletsBusinessMatter selectAppletsBusinessMatterById(Long id)
    {
        return appletsBusinessMatterMapper.selectAppletsBusinessMatterById(id);
    }

    /**
     * 查询申办信息-公证事项列表
     * 
     * @param appletsBusinessMatter 申办信息-公证事项
     * @return 申办信息-公证事项
     */
    @Override
    public List<AppletsBusinessMatter> selectAppletsBusinessMatterList(AppletsBusinessMatter appletsBusinessMatter)
    {
        return appletsBusinessMatterMapper.selectAppletsBusinessMatterList(appletsBusinessMatter);
    }

    /**
     * 新增申办信息-公证事项
     * 
     * @param appletsBusinessMatter 申办信息-公证事项
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessMatter(AppletsBusinessMatter appletsBusinessMatter)
    {
        return appletsBusinessMatterMapper.insertAppletsBusinessMatter(appletsBusinessMatter);
    }

    /**
     * 修改申办信息-公证事项
     * 
     * @param appletsBusinessMatter 申办信息-公证事项
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessMatter(AppletsBusinessMatter appletsBusinessMatter)
    {
        return appletsBusinessMatterMapper.updateAppletsBusinessMatter(appletsBusinessMatter);
    }

    /**
     * 批量删除申办信息-公证事项
     * 
     * @param ids 需要删除的申办信息-公证事项ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessMatterByIds(Long[] ids)
    {
        return appletsBusinessMatterMapper.deleteAppletsBusinessMatterByIds(ids);
    }

    /**
     * 删除申办信息-公证事项信息
     * 
     * @param id 申办信息-公证事项ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessMatterById(Long id)
    {
        return appletsBusinessMatterMapper.deleteAppletsBusinessMatterById(id);
    }

    /**
     * 分组查询各事项数量
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public List<Map<String, Integer>> findMatterIdByNumMap(Long[] ids) {
        return appletsBusinessMatterMapper.findMatterIdByNumMap(ids);
    }

    /**
     * 查询年度-公证事项列表
     *
     * @param appletsBusinessMatter 申办信息-公证事项年度
     * @return 申办信息-公证事项年度集合
     */
    @Override
    public List<AppletsBusinessMatter> selectAdministrationMatterList(AppletsBusinessMatter appletsBusinessMatter) {
        return appletsBusinessMatterMapper.selectAdministrationMatterList(appletsBusinessMatter);
    }
}
